package com.fishy.hw3order.client.fallback;

import com.fishy.hw3order.client.OrderClient;
import com.fishy.hw3order.entity.Product;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class OrderClientFallback implements OrderClient {

    @Override
    public Product getProductById(Integer productId) {
        log.error("服务调用接口异常");
        return null;
    }
}
